package com.deyuanyun.pic.pipe.mapper;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.deyuanyun.pic.pipe.domain.Celbow;


public interface CelbowMapper {
    int deleteByPrimaryKey(String id);

    int insert(Celbow record);

    int insertSelective(Celbow record);

    Celbow selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Celbow record);

    int updateByPrimaryKey(Celbow record);
    
    /**
     * 
    	 * 
    	 *@创建者:严祥
    	 *@创建时间：2015年8月27日下午7:47:48
    	 *@方法说明:
    	 *@参数:@param pipeLineId
    	 *@参数:@param pipeSegmentId
    	 *@参数:@param startMileage
    	 *@参数:@param endMileage
    	 *@参数:@return
    	 *@return:List<LinkedHashMap<String,Object>>
    	 *
     */
    List<LinkedHashMap<String, Object>>selectCelbowtoExcel(@Param("pipeLineId") String pipeLineId, @Param("pipeSegmentId") String pipeSegmentId,
  			@Param("startMileage") BigDecimal startMileage, @Param("endMileage") BigDecimal endMileage);
    
    /**
     * 
    	 * 
    	 *@创建者:严祥
    	 *@创建时间：2015年9月7日上午10:05:14
    	 *@方法说明:根据主键ID查询冷弯头详情信息
    	 *@参数:@param elbowId:冷弯头主键ID
    	 *@参数:@return
    	 *@return:HashMap<String,Object>
    	 *
     */
    HashMap<String, Object> getCelbowDetailedById(@Param("elbowId") String elbowId);

    int insertData(Map data);
	int insertPositData(Map data);
	
	int delGis(Map map);
	int delData(Map map);
	List<LinkedHashMap<String, Object>> exportExcel(Map map);
	
	String findMaxCode(@Param("code") String code);
}